package com.pagoda.nerp.trade.entity;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;

import java.util.Date;

@JsonSerialize(include= JsonSerialize.Inclusion.NON_NULL)
public class MdAccount {

    private Integer vendorId;
    private String vendorName;

    public Integer getVendorId() {
        return vendorId;
    }

    public void setVendorId(Integer vendorId) {
        this.vendorId = vendorId;
    }

    public String getVendorName() {
        return vendorName;
    }

    public void setVendorName(String vendorName) {
        this.vendorName = vendorName;
    }

    // +++++++++++++++++++++++++++++++

    /**
     * 子账户ID，非自增，单据类型编码:ACCOUNT_ID
     *
     * @mbg.generated
     */
    private Integer accountId;

    /**
     * 子账户账号
     *
     * @mbg.generated
     */
    private String account;

    /**
     * 子账户联系人名称
     *
     * @mbg.generated
     */
    private String name;

    /**
     * 子账户密码类型 D 动态验证码登录 P 固定密码登录
     *
     * @mbg.generated
     */
    private String passwdType;

    /**
     * 子账户密码
     *
     * @mbg.generated
     */
    private String password;

    /**
     * 子账户类型
            M 主账户
            A 子账户
     *
     * @mbg.generated
     */
    private String accountType;

    /**
     * 是否绑定微信 Y 已绑 N 未绑
     *
     * @mbg.generated
     */
    private String isBind;

    /**
     * 微信openid
     *
     * @mbg.generated
     */
    private String openid;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    private Date createTime;

    /**
     * 修改时间
     *
     * @mbg.generated
     */
    private Date modifyTime;

    public Integer getAccountId() {
        return accountId;
    }

    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account == null ? null : account.trim();
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public String getPasswdType() {
        return passwdType;
    }

    public void setPasswdType(String passwdType) {
        this.passwdType = passwdType == null ? null : passwdType.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getAccountType() {
        return accountType;
    }

    public void setAccountType(String accountType) {
        this.accountType = accountType == null ? null : accountType.trim();
    }

    public String getIsBind() {
        return isBind;
    }

    public void setIsBind(String isBind) {
        this.isBind = isBind == null ? null : isBind.trim();
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid == null ? null : openid.trim();
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(Date modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        return "MdAccount{" +
                "vendorId=" + vendorId +
                ", vendorName='" + vendorName + '\'' +
                ", accountId=" + accountId +
                ", account='" + account + '\'' +
                ", name='" + name + '\'' +
                ", passwdType='" + passwdType + '\'' +
                ", password='" + password + '\'' +
                ", accountType='" + accountType + '\'' +
                ", isBind='" + isBind + '\'' +
                ", openid='" + openid + '\'' +
                ", createTime=" + createTime +
                ", modifyTime=" + modifyTime +
                '}';
    }
}